<template>
    <div>
        <!--粉丝卡片列表-->
        <el-row :gutter="10">
            <el-col :xs="11" :sm="6" :md="4" :lg="3" :offset="1"
                    v-for="fans in fansData"
                    :key="fans.id"
            >
                <el-card :body-style="{ padding: '0px' }"  class="image-card">
                    <img :src="fans.fansImgUrl" class="image">
                    <div class="fans-info">
                        <span>{{fans.name}}</span>
                    </div>
                    <el-button
                            type="primary"
                            plain class="fans-attention"
                            size="mini"
                    >+关注
                    </el-button>
                </el-card>
            </el-col>
        </el-row>

        <!--分页-->
        <div class="footer-page">
            <el-pagination
                    background
                    layout="prev, pager, next"
                    :total="1000">
            </el-pagination>
        </div>
    </div>
</template>

<script>
    export default {
        name: "fans-member",
        data() {
            return {}
        },
        props:['fansData'],
        methods: {}
    }
</script>

<style scoped lang="scss">
    .image-card{
        height: 210px;
        width: 140px;
        position: relative;
        margin-bottom: 20px;
        .image{
            display:block;
            width: 80px;
            height: 80px;
            border-radius: 60px;
            position: absolute;
            left: 50%;
            transform: translate(-50%);
            top: 20px;
        }
        .fans-info{
            width: 100%;
            text-align: center;
            font-size: 17px;
            font-family: '华文行楷';
            position: absolute;
            left: 50%;
            transform: translate(-50%);
            top: 120px;
        }
        .fans-attention{
            position: absolute;
            left: 50%;
            transform: translate(-50%);
            top: 160px;
        }
    }
</style>
